package cn.zucc.edu.handyzucc.service.impl;

import cn.zucc.edu.handyzucc.dao.ClassDao;
import cn.zucc.edu.handyzucc.entity.Class;
import cn.zucc.edu.handyzucc.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassServiceImpl implements ClassService {
    @Autowired
    private ClassDao classDao;

    @Override
    public Class getClassById(Integer user_class) {
        return classDao.getClassById(user_class);
    }

    @Override
    public List<Class> getClassesByCollege(String class_college) {
        return classDao.getClassesByCollege(class_college);
    }

    @Override
    public List<Class> getClassesByMajor(String class_major) {
        return classDao.getClassesByMajor(class_major);
    }

    @Override
    public List<Class> getAllClasses() {
        return classDao.getAllClasses();
    }
}
